This interface defines a list of DOMString values.
Operations |
DOMString | - appendItem(DOMString newItem)
- Inserts a new item at the end of the list. ParametersDOMString newItem The item which is to be inserted. The first item is
number 0. Returns The inserted item. ExceptionsDOMException, code NO_MODIFICATION_ALLOWED_ERR Raised when the list
cannot be modified.
|
void | - clear()
- Clears all existing current items from the list, with the result being
an empty list. ExceptionsDOMException, code NO_MODIFICATION_ALLOWED_ERR Raised when the list
cannot be modified.
|
DOMString | - getItem(unsigned long index)
- Returns the specified item from the list. Parametersunsigned long index The index of the item from the list which is to be
returned. The first item is number 0. Returns The selected item. ExceptionsDOMException, code INDEX_SIZE_ERR Raised if the index number is
greater than or equal to numberOfItems.
|
DOMString | - initialize(DOMString newItem)
- Clears all existing current items from the list and re-initializes the
list to hold the single item specified by the parameter. ParametersDOMString newItem The item which should become the only member of the list. Returns The item being inserted into the list.
|
DOMString | - insertItemBefore(DOMString newItem, unsigned long index)
- Inserts a new item into the list at the specified position. The first
item is number 0. ParametersDOMString newItem The item which is to be inserted into the list. unsigned long index The index of the item before which the new item is to be
inserted. The first item is number 0.
|
DOMString | - removeItem(unsigned long index)
- Removes an existing item from the list. Parametersunsigned long index The index of the item which is to be removed. The first
item is number 0. Returns The removed item. ExceptionsDOMException, code NO_MODIFICATION_ALLOWED_ERR Raised when the list
cannot be modified.
|
DOMString | - replaceItem(DOMString newItem, unsigned long index)
- Replaces an existing item in the list with a new item. ParametersDOMString newItem The item which is to be inserted into the list. unsigned long index The index of the item which is to be replaced. The first
item is number 0. Returns The inserted item.
|